const express = require("express");
const app = express();

app.get("/", (req, res) => {
  res.send("监听到了1111");
});

app.get("/api/aa", (req, res) => {
  console.log(req, "aa");
  res.send("监听到了aa");
});

app.get("/api/bb", (req, res) => {
  console.log(req, "bb");
  res.send("监听到了bb");
});

app.listen(3000, () => {
  console.log("服务器已经开启了 http://127.0.0.1:3000");
});
